package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import com.corpgovernment.common.enums.DeleteStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * 员工关联常旅新鲜度实体
 *
 * @author wangyujue
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "mb_fresh_passenger_relation")
public class MbFreshPassengerRelation extends BaseEntity {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OperateLogFieldDesc(value = "主键")
    private Long id;

    @Column(name = "uid")
    @OperateLogFieldDesc(value = "员工id")
    private String uid;

    @Column(name = "fresh_uid")
    @OperateLogFieldDesc(value = "员工uid或非员工nonEmpNo")
    private String freshUid;

    @Column(name = "employee_flag")
    @OperateLogFieldDesc(value = "员工标识")
    private Integer employeeFlag;

    @Column(name = "fresh_time")
    @OperateLogFieldDesc(value = "刷新时间")
    private Date freshTime;

    @Column(name = "is_deleted")
    @OperateLogFieldDesc(value = "删除状态", type = DeleteStatusEnum.class)
    private Boolean isDeleted;
}
